
<p><a id="add_new_item" class="button-secondary">Add New Item</a></p>

<div id="menu_item_list">
<?php 
	
	$total_items = count( $menu_input );

	for ($i = 1; $i <= $total_items; $i++)  { 
		$name = $menu_input[$i]['menu_item_name'];
		$description = $menu_input[$i]['menu_item_description'];
		$price = $menu_input[$i]['menu_item_price'];
	
?>
 
<div class="dinner_item" style="background: lightgray; padding: 5px 5px 0px 5px; border: 1px solid black; margin-bottom: 3px;">
    <ul class="dinner_custom_metabox" style="list-style-type: none; padding: 0; margin:0;">
        <div style="float: left; width: 250px;">
            <li style="margin: 0px 10px 0px 0px;">
                <label class="name" for="menu_item_name_<?php echo $i ?>">Menu Item Name:<br/></label> <input class="name_input" style="width: 200px;" id="menu_item_name_<?php echo $i ?>" name="menu_input[<?php echo $i ?>][menu_item_name]" value="<?php echo $name; ?>"/>
            </li>
            <li style="margin: 20px 10px 10px 0px;">
                <label class="price" for="menu_item_price_<?php echo $i ?>">Menu Item Price:<br/></label> <input class="price_input" id="menu_item_price_<?php echo $i ?>" name="menu_input[<?php echo $i ?>][menu_item_price]" value="<?php echo $price; ?>" />
            </li>
        </div>
        
        <div style="float: left; width: 350px;">
            <li style="margin: 0px 10px 0px 0px;">
                <label class="description" for="menu_item_description_<?php echo $i ?>">Menu Item Description:<br/></label><textarea class="description_textarea" style="width: 300px; height: 90px;" id="menu_item_description_<?php echo $i ?>" name="menu_input[<?php echo $i ?>][menu_item_description]" value="<?php echo $description; ?>"></textarea>
            </li>
        </div>
        <div>
        	<li class="delete_dinner_item" style="float: right; width: 80px; height: 15px; margin: -10px 0px 0px 20px;"><p class="button-secondary">Delete Item</p></li>
        </div>
        <div style="clear:both;"></div>
    </ul>
</div>

<?php
}
?>

</div>